package com.whpost.service.dao.cwqf;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.whpost.service.entity.cwqf.TCwqfKhzf;
import com.whpost.service.entity.cwqf.TCwqfTeamKhjl;
import org.apache.ibatis.annotations.*;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author YinZhuoyi
 * @since 2025-08-29
 */
public interface TCwqfTeamKhjlMapper extends BaseMapper<TCwqfTeamKhjl> {


    @Select("select * from t_cwqf_team_khjl where ${ew.sqlSegment}")
    @Results(id="tCwqfTeamKhjlMap",value = {
            @Result(column="team_id",property="tCwqfTeam",
                    one=@One(
                            select="com.whpost.service.dao.cwqf.TCwqfTeamMapper.getTCwqfTeamById")
            ),
            @Result(column="czy_code",property="hsCzy",
                    one=@One(
                            select="com.whpost.service.dao.cwqf.HsCzyMapper.selectByCode")
            ),
            @Result(column="team_id",property="teamId"),
            @Result(column="czy_code",property="czyCode")
    })
    IPage<TCwqfTeamKhjl> getTCwqfTeamKhjlPage(Page<TCwqfTeamKhjl> page, @Param("ew") QueryWrapper wrapper);

}
